﻿package mortal.game.view.copy.crossMainCity.panels
{
    import com.mui.controls.*;
    import com.mui.core.*;
    import extend.language.*;
    import fl.data.*;
    import mortal.common.*;
    import mortal.common.global.*;
    import mortal.game.resource.*;
    import mortal.game.view.common.*;
    import mortal.game.view.copy.crossMainCity.panels.sub.*;

    public class MainCityBattleKOInfoPanel extends MainCityBattleCopyInfoBase
    {
        private var _title:GBitmap;
        private var _list:GTileList;
        private var _flagNum:int = 0;

        public function MainCityBattleKOInfoPanel(param1:String = "", param2:int = 250, param3:int = 380, param4:int = 6)
        {
            super(param1, param2, param3, param4);
            return;
        }// end function

        public function updateRank(param1:DataProvider) : void
        {
            this._list.dataProvider = param1;
            this._list.drawNow();
            return;
        }// end function

        public function updateFlagNum(param1:int) : void
        {
            this._flagNum = param1;
            this.updateFlagNumShow();
            return;
        }// end function

        private function updateFlagNumShow() : void
        {
            if (!_loaded)
            {
                return;
            }
            return;
        }// end function

        private function addFlag(param1:int) : void
        {
            return;
        }// end function

        override protected function updateResImg() : void
        {
            if (isDisposed || !_loaded || this._title == null)
            {
                return;
            }
            this._title.bitmapData = GlobalClass.getBitmapData(ImagesConst.MainCityBattle_TTS);
            this.updateFlagNumShow();
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            _smallMap.smallMapName = ImagesConst.MainCityKOMiniMap;
            _smallMap.run();
            this._title = UIFactory.gBitmap(null, 82, 16, _bodySprite);
            pushUIToDisposeVec(UIFactory.bg(13, 360, 233, 23, _bodySprite, ImagesConst.RegionTitleBg));
            var _loc_1:* = GlobalStyle.textFormatBai;
            _loc_1.size = 13;
            pushUIToDisposeVec(UIFactory.gTextField(Language.getString(20948), 22, 360, 100, 22, _bodySprite, _loc_1));
            pushUIToDisposeVec(UIFactory.gTextField(Language.getString(20949), 89, 360, 100, 22, _bodySprite, _loc_1));
            pushUIToDisposeVec(UIFactory.gTextField(Language.getString(20950), 190, 360, 100, 22, _bodySprite, _loc_1));
            this._list = UIFactory.tileList(12, 382, 225, 160, _bodySprite);
            this._list.setStyle("cellRenderer", MainCityBattleGuildKORender);
            this._list.rowHeight = 24;
            this._list.columnWidth = 224;
            _txtTips.htmlText = Language.getString(20705);
            _btnExit.y = 529;
            this.updateResImg();
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            super.disposeImpl(param1);
            this._title.dispose(param1);
            this._title = null;
            this._list.dispose(param1);
            this._list = null;
            _loaded = false;
            return;
        }// end function

    }
}
